package com.dongan.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author longTao
 * @since 2021-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_users")
public class Users implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户名
     */
    @TableField("LOGIN_ID")
    private String loginId;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;

    /**
     * 图片路径
     */
    @TableField("PHOTO_PATH")
    private String photoPath;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 性别(0:男,1:女)
     */
    private Integer gender;

    /**
     * 住址
     */
    private String address;

    /**
     * 电话
     */
    private String phone;

    /**
     * 微信登录的openId

     */
    private String openId;

      @TableField(fill = FieldFill.INSERT)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;

      @TableField(fill = FieldFill.INSERT_UPDATE)
      @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
      @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableLogic
    private Integer deleted;


}
